import Layout from "@/layout";

export const assetRouter = [

    // 资产领用
    {
        path: '/asset/mngBill/use/form',
        component: Layout,
        hidden: true,
        permissions: ['asset:mngBill:add'],
        children: [
            {
                path: 'add/:billType',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产领用', activeMenu: '/asset/mng/use'}
            },
            {
                path: ':formId(\\d+)',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产领用', activeMenu: '/asset/mng/use'}
            }
        ]
    },

    // 资产领用退还
    {
        path: '/asset/mngBill/useBack/form',
        component: Layout,
        hidden: true,
        permissions: ['asset:mngBill:add'],
        children: [
            {
                path: 'add/:billType',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产退还', activeMenu: '/asset/mng/useBack'}
            },
            {
                path: ':formId(\\d+)',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产退还', activeMenu: '/asset/mng/useBack'}
            }
        ]
    },

    // 资产借用
    {
        path: '/asset/mngBill/borrow/form',
        component: Layout,
        hidden: true,
        permissions: ['asset:mngBill:add'],
        children: [
            {
                path: 'add/:billType',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产借用', activeMenu: '/asset/mng/borrow'}
            },
            {
                path: ':formId(\\d+)',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产借用', activeMenu: '/asset/mng/borrow'}
            }
        ]
    },


    // 资产借用归还
    {
        path: '/asset/mngBill/borrowBack/form',
        component: Layout,
        hidden: true,
        permissions: ['asset:mngBill:add'],
        children: [
            {
                path: 'add/:billType',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产归还', activeMenu: '/asset/mng/borrowBack'}
            },
            {
                path: ':formId(\\d+)',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产归还', activeMenu: '/asset/mng/borrowBack'}
            }
        ]
    },


    // 资产调拨
    {
        path: '/asset/mngBill/allot/form',
        component: Layout,
        hidden: true,
        permissions: ['asset:mngBill:add'],
        children: [
            {
                path: 'add/:billType',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产调拨', activeMenu: '/asset/mng/allot'}
            },
            {
                path: ':formId(\\d+)',
                component: () => import('@/views/asset/mngBill/form'),
                name: 'AssetMngForm',
                meta: {title: '资产调拨', activeMenu: '/asset/mng/allot'}
            }
        ]
    },
]
